#!/bin/bash

cd /home/smartgis/workspace/project/smart_server

pkill -f "core/server/deamon/deamon_server.py"
pkill -f "projects/Nan2Shui3/api.py"

nohup /home/smartgis/anaconda3/envs/paddle2.5/bin/python core/server/deamon/deamon_server.py --config projects/Nan2Shui3/configs/deamon_cfg.yml >/dev/null 2>&1 &
# nohup python3 core/server/deamon/deamon_server.py --config projects/rooftop/configs/deamon_cfg.yml &

while true
do
    echo hello world
    sleep 1
done